﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.IO;
using System.Configuration;


namespace TED
{
    public static class DataSaver
    {
        public static bool SaveDataSet(DataSet talkData,string outputFolder)
        {
            if (Directory.Exists(outputFolder))
            {
                talkData.WriteXmlSchema(Path.Combine(outputFolder, TEDConstants.dataSetSchemaFileName));
                talkData.WriteXml(Path.Combine(outputFolder, TEDConstants.dataSetDataFileName));
                return true;
            }
            return false;         
       }
    }
}
